package com.ld.control.business.task.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 任务模板表
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("task_process_tmp")
@Schema(description = "TaskProcessTmpModel对象")
public class TaskProcessTmpModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "任务模板id")
    private Long taskTmpId;

    @Schema(description = "流程模板id")
    private Long processTmpId;

    @Schema(description = "序列号，按照从小到大的顺序执行流程")
    private Integer serialNumber;


    public static final String ID = "id";

    public static final String TASK_TMP_ID = "task_tmp_id";

    public static final String PROCESS_TMP_ID = "process_tmp_id";

    public static final String SERIAL_NUMBER = "serial_number";

}
